package com.nutstudy.ioc.test;


import com.nutstudy.ioc.spring.NutAutowired;
import com.nutstudy.ioc.spring.NutComponent;


/**
 * @author: HyoJoo-W
 * @date: 2021-07-29 09:37
 * @description:
 */

@NutComponent("userService")
//@NutScope("prototype")
//@NutComponent
public class UserService implements UserInterface
{
    @NutAutowired
    private OrderService orderService;

    private User defaultUser;

    @Override
    public void test()
    {
        System.out.println(orderService);
//        System.out.println(defaultUser);
    }

//    @Override
//    public void afterPropertiesSet() throws Exception
//    {
//        defaultUser = new User();
//    }
}
